package com.gitee.shop.mapper;

import com.gitee.shop.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User record);

    List<User> selectAll();

    void deleteByPrimaryKey(Integer uid);

    void updateByPrimaryKey(User user);

    User selectByPrimaryKey(Integer uid);

    User loginUser(@Param("username") String username,@Param("password") String password);
}